<template>
	<q-upload
		:file-list="forms.fileList"
		action="/api/config/imgUpload"
		name="file"
		:on-success="handleSuccess"
		:with-credentials="true"
		:size="200"
		:limit="5"
		:multiple="true"
	/>
</template>

<script setup lang="ts">
	import { reactive, onMounted } from 'vue';

	const forms = reactive({
		fileList: [],
	});
	const handleSuccess = res => {
		console.log('res', res);
		forms.fileList = res;
	};
</script>
<style lang="scss">
	.wrapper {
		padding: 20px;
	}
</style>
